package com.zxt.content.copywriting.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * @author zxt
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@TableName("all_private_copywriting")
public class PrivateCopywriting {

    public static final LambdaQueryWrapper<PrivateCopywriting> gw() {
        return new LambdaQueryWrapper<>();
    }


    /**
     * 公共文案id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所属用户
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 文案主题
     */
    @TableField(value = "theme")
    private String theme;

    /**
     * 文案内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 文案作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 文案来源
     */
    @TableField(value = "source")
    private String source;

    /**
     * 文案状态 0未上传 1审核中 2审核通过 3审核失败
     */
    @TableField(value = "copywriting_status")
    private Byte copywritingStatus;

    /**
     * 文案批注
     */
    @TableField(value = "notes")
    private String notes;

    /**
     * 文案配图
     */
    @TableField(value = "image_url")
    private String imageUrl;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_deleted")
    private Boolean isDeleted;


    /**
     * -------------------------------------------------
     * 上面字段由工具自动生成，请在下面添加扩充字段
     * -------------------------------------------------
     */


}
